<?php /* Smarty version Smarty-3.1.6, created on 2018-03-10 22:39:26
         compiled from "./Tpl/Admin\SysNode\index.html" */ ?>
<?php /*%%SmartyHeaderCode:94885aa3ee1e639ba7-32011388%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e48e91f35cc970b852d7410ce5ff35893b947cac' => 
    array (
      0 => './Tpl/Admin\\SysNode\\index.html',
      1 => 1494558134,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '94885aa3ee1e639ba7-32011388',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'module' => 0,
    'controller' => 0,
    'page' => 0,
    'limit' => 0,
    'id' => 0,
    'keywords' => 0,
    'powerPush' => 0,
    'vo' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5aa3ee1e6e1b2',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5aa3ee1e6e1b2')) {function content_5aa3ee1e6e1b2($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("Public/top.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


</head>
<body>
<div id="warpper">
    <div class="content">
        <div class="location">模块管理</div>
        <div class="ui-tab">
            <ul>
                <li class="tab-item selected"><a href="<?php echo U('SysNode/index');?>
" onclick="LayerShow();">模块列表</a></li>
                <li class="tab-item last-item"><a href="<?php echo U('SysNode/add');?>
" onclick="LayerShow();">新增模块</a></li>
            </ul>
        </div>
        <div class="filedSet" style="padding-bottom: 0;">
            <div class="search">
                <form action="<?php echo u('SysNode/search');?>
" method="get" class="ui-form reportForm" id="searchForm">
                	<input name="m" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
">
                    <input name="c" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['controller']->value;?>
">
                    <input name="a" type="hidden" value="search">
                    <input name="p" id="page" type="hidden" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['page']->value)===null||$tmp==='' ? 1 : $tmp);?>
">
                    <input name="limit" id="limit" type="hidden" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['limit']->value)===null||$tmp==='' ? 10 : $tmp);?>
">
                    <div class="ui-form-item inline-block">
                        <label class="ui-label">状态</label>
                        <select class="ui-select">
                        	<option>全部</option>
                        </select>
                    </div>
                    <div class="ui-form-item inline-block">
                        <label class="ui-label">编号</label>
                        <input type="text" name="id" class="ui-text bg-text keyword" value="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
" />
                    </div>
                    <div class="ui-form-item inline-block">
                        <label class="ui-label">关键字</label>
                        <input type="text" class="ui-text bg-text keyword" value="<?php echo $_smarty_tpl->tpl_vars['keywords']->value;?>
" name="keywords"/>
                    </div>
                    <div class="ui-form-item inline-block">
                        <button type="submit" class="ui-button" onclick="LayerShow();">查询</button>
                        <?php if ($_smarty_tpl->tpl_vars['powerPush']->value){?>
                        <button type="button" id="pushCenter" class="ui-button" onclick="LayerShow();">推送到中心库</button>
                        <?php }?>
                    </div>
                </form>
            </div>
        </div> 
        <!--表格内容-->
        <div class="mainGrid">
            <table class="ui-table ui-body">
                <thead>
                    <tr>
                        <th class="pct10">编号</th>
                        <th class="pct10">标题</th>
                        <th class="pct10">名称</th>
                        <th class="pct10">父级</th>
                        <th class="pct10">级别</th>
                        <th class="pct10">路径</th>
                        <th class="pct10">状态</th>
                        <th class="pct10">排序</th>
                        <th class="pct10 last-col">操作</th>
                    </tr>
                </thead>
                <tbody>
                <?php  $_smarty_tpl->tpl_vars["vo"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["vo"]->_loop = false;
 $_from = ($_smarty_tpl->tpl_vars['list']->value); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["vo"]->key => $_smarty_tpl->tpl_vars["vo"]->value){
$_smarty_tpl->tpl_vars["vo"]->_loop = true;
?>
                    <tr>
                        <td><?php echo $_smarty_tpl->tpl_vars['vo']->value['id'];?>
</td>
						<td><?php echo $_smarty_tpl->tpl_vars['vo']->value['title'];?>
</td>
						<td><?php echo $_smarty_tpl->tpl_vars['vo']->value['name'];?>
</td>
						<td><?php echo $_smarty_tpl->tpl_vars['vo']->value['parent'];?>
</td>
						<td><?php echo $_smarty_tpl->tpl_vars['vo']->value['level'];?>
</td>
						<td><?php echo $_smarty_tpl->tpl_vars['vo']->value['path'];?>
</td>
						<td><?php echo $_smarty_tpl->tpl_vars['vo']->value['status'];?>
</td>
						<td><?php echo $_smarty_tpl->tpl_vars['vo']->value['sort'];?>
</td>
                        <td>
                            <div class="handler">
                                <a href="<?php echo u(('SysNode/edit?id=').($_smarty_tpl->tpl_vars['vo']->value['id']));?>
" onclick="LayerShow();">编辑</a>
                                <span class="sep">|</span>
                                <a href="<?php echo u(('SysNode/delete?id=').($_smarty_tpl->tpl_vars['vo']->value['id']));?>
 " onclick="if(!confirm('您确认要删除此数据吗?删除后数据不能恢复!'))return false;">删除</a>
                            </div>
                        </td>
                    </tr> 
                <?php } ?>
                </tbody>
            </table>
        </div>
        <!--描述：分页-->
        <div class="pagination">
            <?php echo $_smarty_tpl->getSubTemplate ("Public/page.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

        </div>
    </div>
		</div>
<script>
    $('#pushCenter').click(function(){
        $.getJSON("<?php echo u('pushMenuToCenter');?>
",function(result){
            parent.closeLoading();
            if(result.status==0){
                layer.msg('权限项已经成功推送到中心库');
            }else{
                layer.msg(result.msg);
            }

        });
    });


</script>
<?php echo $_smarty_tpl->getSubTemplate ("Public/foot.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>